package jssia.database;

public enum RDBMS {
    MYSQL ("com.mysql.jdbc.Driver");

    private final String driver;

    private RDBMS(String driver) {
        this.driver = driver;
    }

    public String getDriver() {
        return driver;
    }

    public void createDriverInstance() {
        try {
            Class.forName(driver).newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
